﻿<UserControl x:Class="ODAF.SilverlightApp.TagView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
   Width="250" Height="200">

    <Grid x:Name="LayoutRoot">
        <StackPanel Orientation="Vertical">
            <Border BorderBrush="Gray" Background="#EFEFEF" CornerRadius="4" Margin="0,0,0,-1" Padding="4" Width="250" Height="150">
                <Grid  Margin="0">
                    <StackPanel Orientation="Vertical" HorizontalAlignment="Left" Margin="0">
                        <TextBlock x:Name="tbTitle" 
                                   FontWeight="Bold" 
                                   TextAlignment="Left"
                                   HorizontalAlignment="Left"
                                   Width="220">Tags</TextBlock>
                        <ScrollViewer BorderBrush="Transparent" Height="90" Margin="0" Width="242">
                            <StackPanel Orientation="Vertical"  HorizontalAlignment="Left" >

                                <TextBlock x:Name="tbDescription" TextWrapping="Wrap"/>

                            </StackPanel>
                        </ScrollViewer>
                        
                        <Grid Width="242" Margin="0,8,0,0">
                            
                            <TextBlock x:Name="tagEntryHint" 
                                       TextAlignment="Right"
                                       Foreground="Gray"
                                       Width="242">You need to sign in to tag this landmark.</TextBlock>
                            
                            <StackPanel x:Name="tagEntryForm"  
                                        Orientation="Horizontal" 
                                        HorizontalAlignment="Stretch" 
                                        Visibility="Collapsed"
                                        Width="242">
                                
                                <TextBox x:Name="TagEntry" Width="174" />
                                <Button x:Name="TagSubmit" Width="60" Content="Add Tag" Click="TagSubmit_Click"/>
                                
                            </StackPanel>
                        </Grid>
                        
                    </StackPanel>
                </Grid>
            </Border>

            <Image Source="Images/callout_bottom.png" Stretch="None"/>
        </StackPanel>
        <Image x:Name="btnClose" 
               Source="Images/CancelButton.png" 
               Stretch="None" 
               Margin="0,4,4,0"
               HorizontalAlignment="Right" 
               MouseLeftButtonUp="OnCloseButton"
               VerticalAlignment="Top"/>
    </Grid>
</UserControl>
